{namespace em=TYPO3\CMS\Extensionmanager\ViewHelpers}
<f:layout name="main" />
<f:section name="docheader-buttons">
    <a href="{f:uri.action(action: 'ter')}" title="{f:translate(key:'extConfTemplate.backToList')}">
        <core:icon identifier="actions-view-go-back" />
    </a>
</f:section>
<f:section name="content">

    <h1><f:translate key="showAllVersions" /> {extensionKey}</h1>
    <f:if condition="{currentVersion}">
        <p><f:format.nl2br>{currentVersion.description}</f:format.nl2br></p>
        <table class="simpletable">
            <tr>
                <th><f:translate key="extensionList.showAllVersions.extensionKey" /></th>
                <td><strong>{currentVersion.extensionKey}</strong></td>
            </tr>
            <tr>
                <th><f:translate key="extensionList.showAllVersions.version" /></th>
                <td>{currentVersion.version} <span class="label label-{currentVersion.stateString}">{currentVersion.stateString}</span></td>
            </tr>
            <tr>
                <th><f:translate key="extensionList.showAllVersions.lastUploaded" /></th>
                <td><f:format.date>{currentVersion.lastUpdated}</f:format.date></td>
            </tr>
            <tr>
                <th><f:translate key="extensionList.showAllVersions.downloads" /></th>
                <td><f:format.number decimals="0">{currentVersion.alldownloadcounter}</f:format.number></td>
            </tr>
            <tr>
                <th><f:translate key="extensionList.showAllVersions.category" /></th>
                <td>{currentVersion.categoryString}</td>
            </tr>
            <tr>
                <th><f:translate key="extensionList.showAllVersions.manual" /></th>
                <td>
                    <a href="{f:if(condition:currentVersion.documentationLink,then:currentVersion.documentationLink,else:'https://docs.typo3.org/typo3cms/extensions/{currentVersion.extensionKey}/')}" target="_blank" rel="noreferrer">
                        <f:translate key="extensionList.showAllVersions.readOnline" />
                    </a>
                </td>
            </tr>
            <tr>
                <th><f:translate key="extensionList.showAllVersions.author" /></th>
                <td>{currentVersion.authorName}</td>
            </tr>
        </table>
    </f:if>
    <f:render partial="List/TerShowVersionsTable" arguments="{tableId: 'terVersionTable', extensions: extensions}" />

</f:section>
